 // @ 516
// _(:з」∠)_
"use strict";

define([], function() {
    let colorMatch = {
        // basic elmt
        "TMP": [
            { start: -20, end: -18, color: "rgb( 59,126,219 )", value: -20 },
            { start: -18, end: -16, color: "rgb( 78,138,221 )", value: -18 },
            { start: -16, end: -14, color: "rgb( 97,150,224 )", value: -16 },
            { start: -14, end: -12, color: "rgb( 116,163,226 )", value: -14 },
            { start: -12, end: -10, color: "rgb( 135,175,229 )", value: -12 },
            { start: -10, end: -8, color: "rgb( 155,188,232 )", value: -10 },
            { start: -8, end: -6, color: "rgb( 154,196,220 )", value: -8 },
            { start: -6, end: -4, color: "rgb( 153,205,208 )", value: -6 },
            { start: -4, end: -2, color: "rgb( 152,214,196 )", value: -4 },
            { start: -2, end: 0, color: "rgb( 151,232,173 )", value: -2 },
            { start: 0, end: 2, color: "rgb( 215,222,126 )", value: 0 },
            { start: 2, end: 4, color: "rgb( 234,219,112 )", value: 2 },
            { start: 4, end: 6, color: "rgb( 244,217,99 )", value: 4 },
            { start: 6, end: 8, color: "rgb( 250,204,79 )", value: 6 },
            { start: 8, end: 10, color: "rgb( 247,180,45 )", value: 8 },
            { start: 10, end: 12, color: "rgb( 241,155,0 )", value: 10 },
            { start: 12, end: 14, color: "rgb( 241,147,3 )", value: 12 },
            { start: 14, end: 16, color: "rgb( 240,132,10 )", value: 14 },
            { start: 16, end: 18, color: "rgb( 239,117,17 )", value: 16 },
            { start: 18, end: 20, color: "rgb( 238,102,24 )", value: 18 },
            { start: 20, end: 22, color: "rgb( 238,88,31 )", value: 20 },
            { start: 22, end: 24, color: "rgb( 231,75,26 )", value: 22 },
            { start: 24, end: 26, color: "rgb( 224,63,22 )", value: 24 },
            { start: 26, end: 28, color: "rgb( 217,51,18 )", value: 26 },
            { start: 28, end: 30, color: "rgb( 208,36,14 )", value: 28 },
            { start: 30, end: 32, color: "rgb( 194,0,3 )", value: 30 },
            { start: 32, end: 34, color: "rgb( 181,1,9 )", value: 32 },
            { start: 34, end: 36, color: "rgb( 169,2,16 )", value: 34 },
            { start: 36, end: 38, color: "rgb( 138,5,25 )", value: 36 },
            { start: 38, end: 40, color: "rgb( 111,0,21 )", value: 38 },
            { start: 40, end: 50, color: "rgb( 80,0,15 )", value: 40 }
        ],
        // other
        "cropDistribution": [
            { start: 0, end: 1, color: "rgb( 255,255,255 )", value: "无作物" },
            { start: 1, end: 9999, color: "rgb( 188,223,171 )", value: "有作物" }
        ],
        "cropLoss": [
            // { start: 0, end: 1, color: "rgb( 255,255,255 )", value: "无" },
            { start: 1, end: 10, color: "rgb( 203,251,218 )", value: "轻度" },
            { start: 10, end: 25, color: "rgb( 87,117,213 )", value: "中度" },
            { start: 25, end: 100, color: "rgb( 51,13,128 )", value: "重度" }
        ],
        "NDVI": [
            { start: 0, end: 0.1, color: "RGBA(253,247,5,255)", value: "0" },
            { start: 0.1, end: 0.2, color: "RGBA(255,251,2,255)", value: "0.1" },
            // { start: 0.12, end: 0.14, color: "RGBA(181,254,1,255)", value: "0.12" },
            // { start: 0.14, end: 0.16, color: "RGBA(136,255,3,255)", value: "0.14" },
            // { start: 0.16, end: 0.18, color: "RGBA(112,252,7,255)", value: "0.16" },
            // { start: 0.18, end: 0.2, color: "RGBA(91,255,6,255)", value: "0.18" },
            { start: 0.2, end: 0.3, color: "RGBA(70,253,5,255)", value: "0.2" },
            // { start: 0.22, end: 0.24, color: "RGBA(51,249,9,255)", value: "0.22" },
            // { start: 0.24, end: 0.26, color: "RGBA(12,255,2,255)", value: "0.24" },
            // { start: 0.26, end: 0.28, color: "RGBA(2,255,7,255)", value: "0.26" },
            // { start: 0.28, end: 0.3, color: "RGBA(2,252,28,255)", value: "0.28" },
            { start: 0.3, end: 0.4, color: "RGBA(0,255,54,255)", value: "0.3" },
            // { start: 0.32, end: 0.34, color: "RGBA(0,252,73,255)", value: "0.32" },
            // { start: 0.34, end: 0.36, color: "RGBA(1,254,103,255)", value: "0.34" },
            // { start: 0.36, end: 0.38, color: "RGBA(11,248,130,255)", value: "0.36" },
            // { start: 0.38, end: 0.4, color: "RGBA(2,255,148,255)", value: "0.38" },
            { start: 0.4, end: 0.5, color: "RGBA(2,255,175,255)", value: "0.4" },
            // { start: 0.42, end: 0.44, color: "RGBA(14,247,202,255)", value: "0.42" },
            // { start: 0.44, end: 0.46, color: "RGBA(3,253,226,255)", value: "0.44" },
            // { start: 0.46, end: 0.48, color: "RGBA(4,252,252,255)", value: "0.46" },
            // { start: 0.48, end: 0.5, color: "RGBA(5,229,254,255)", value: "0.48" },
            { start: 0.5, end: 0.6, color: "RGBA(3,203,254,255)", value: "0.5" },
            // { start: 0.52, end: 0.54, color: "RGBA(5,175,253,255)", value: "0.52" },
            // { start: 0.54, end: 0.56, color: "RGBA(4,150,253,255)", value: "0.54" },
            // { start: 0.56, end: 0.58, color: "RGBA(5,119,252,255)", value: "0.56" },
            // { start: 0.58, end: 0.6, color: "RGBA(5,93,252,255)", value: "0.58" },
            { start: 0.6, end: 9999, color: "RGBA(2,65,255,255)", value: "0.6" },
            { start: -1, end: 0, color: "RGBA(246,3,2,255)", value: "-1" }
        ],
        "CD": [
            // { start: 1, end: 2, color: "rgb( 255,255,255 )", value: "无灾" },
            { start: 2, end: 3, color: "rgb( 203,251,218 )", value: "轻度" },
            { start: 3, end: 4, color: "rgb( 87,117,213 )", value: "中度" },
            { start: 4, end: 5, color: "rgb( 51,13,128 )", value: "重度" }
        ],
        "DT": [
            { start: 1, end: 2, color: "rgb( 166,242,143 )", value: "湿润" },
            { start: 2, end: 3, color: "rgb( 255,255,180 )", value: "正常" },
            { start: 3, end: 4, color: "rgb( 249,135,192 )", value: "轻度" },
            { start: 4, end: 5, color: "rgb( 232,26,129 )", value: "中度" },
            { start: 5, end: 6, color: "rgb( 128,0,64 )", value: "重度" }
        ]
    };

    window.colorMatch = colorMatch;

    return colorMatch;
});